public abstract class AbstractTimpl implements T{
    private char[] chars;
    private int value;
    private int flag = 0;
    public AbstractTimpl() {
        this.chars = new char[16];
    }

    public AbstractTimpl(String str, int value) {
        //this.chars = new char[value];
        this(value+ str.length());
        for (int i = 0; i < str.length(); i++) {
            this.chars[i] = str.charAt(i);
        }
        flag = str.length();
    }

    public AbstractTimpl(int value) {
        this.chars = new char[value];
    }
    
    @Override
    public void append(String str) {
        if(flag == 0){
            for (int i = 0; i < str.length(); i++) {
                chars[i] = str.charAt(i);
            }}else{
                
            }
        }
    }
